Skip to content

Point4d

Public Struct

Represents the four coordinates of a point in four-dimensional space.

The W (fourth) dimension is often considered the weight of the point as seen in 3D space.

Namespace: Rhino.Geometry

Assembly: RhinoCommon (in RhinoCommon.dll)

Syntax

[SerializableAttribute]
public struct Point4d : ISerializable, IEquatable<Point4d>,
IEpsilonComparable<Point4d>, IFormattable

The Point4d type exposes the following members.

Constructors

Name

Description


Public Method

Initializes a new instance of the Point4d class from the coordinates of a point.


Public Method

Initializes a new point by copying coordinates from another point.


Public Method

Initializes a new instance of the Point4d class based on coordinates.


Properties

Name

Description


Public Property

Returns an indication regarding the validity of this point.


Public Property
Static Member

Gets the value of a point with all coordinates set as RhinoMath.UnsetValue.


Public Property

Gets or sets the W (fourth) coordinate -or weight- of this point.


Public Property

Gets or sets the X (first) coordinate of this point.


Public Property

Gets or sets the Y (second) coordinate of this point.


Public Property

Gets or sets the Z (third) coordinate of this point.


Methods

Name

Description


Public Method
Static Member

Sums two Point4d together.

(Provided for languages that do not support operator overloading. You can use the + operator otherwise)


Public Method

Check that all values in other are within epsilon of the values in this


Public Method

Determines whether the specified System.Object is Point4d and has same coordinates as the present point.

(Overrides ValueType.Equals(Object).)


Public Method

Determines whether the specified point has same value as the present point.


Public Method

Computes the hash code for the present point.

(Overrides ValueType.GetHashCode..)


Public Method

GetType

Gets the Type of the current instance.

(Inherited from Object.)


Public Method
Static Member

Multiplies a point by a number.

(Provided for languages that do not support operator overloading. You can use the * operator otherwise)


Public Method
Static Member

Subtracts the second point from the first point.

(Provided for languages that do not support operator overloading. You can use the - operator otherwise)


Public Method

Returns the fully qualified type name of this instance.

(Overrides ValueType.ToString..)


Public Method

Formats the value of the current instance using the specified format.


Public Method

Transforms the present point in place. The transformation matrix acts on the left of the point. i.e.,

result = transformation*point


Operators

Name

Description


Public Operator
Static Member
Addition

Sums two Point4d together.


Public Operator
Static Member
Equality

Determines whether two Point4d have equal values.


Public Operator
Static Member
Inequality

Determines whether two Point4d have different values.


Public Operator
Static Member
Multiply(Point4d, Point4d)

Multiplies two Point4d together, returning the dot (internal) product of the two. This is not the cross product.


Public Operator
Static Member
Multiply(Point4d, Double)

Multiplies a point by a number.


Public Operator
Static Member
Subtraction

Subtracts the second point from the first point.