Point4d
References[StructLayout(LayoutKind.Sequential, Pack = 8, Size = 32)]
[DebuggerDisplay("({m_x}, {m_y}, {m_z}, [{m_w}])")]
[Serializable]
public struct Point4d : ISerializable, IEquatable<Point4d>, IEpsilonComparable<Point4d>, IFormattable
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.
Constructors
Properties
Returns an indication regarding the validity of this point.
Gets the value of a point with all coordinates set as RhinoMath.UnsetValue.
Gets or sets the W (fourth) coordinate -or weight- of this point.
Methods
Sums two Point4d together.
(Provided for languages that do not support operator overloading. You can use the + operator otherwise)
Check that all values in other are within epsilon of the values in this
Implements: EpsilonEquals
Equals
#Determines whether the specified System.Object is Point4d and has same coordinates as the present point.
Parameters:
| obj (object) | The specified object. |
Returns: true if obj is Point4d and has the same coordinates as this; otherwise false.
Overrides: ValueType.Equals
Determines whether the specified point has same value as the present point.
Parameters:
| point (Point4d) | The specified point. |
Returns: true if point has the same value as this; otherwise false.
GetHashCode
#Computes the hash code for the present point.
Returns: A non-unique hash code, which uses all coordinates of this object.
Overrides: ValueType.GetHashCode
Multiplies a point by a number.
(Provided for languages that do not support operator overloading. You can use the * operator otherwise)
Subtracts the second point from the first point.
(Provided for languages that do not support operator overloading. You can use the - operator otherwise)
[SecurityPermission(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.SerializationFormatter)]
void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
Parameters:
| info (SerializationInfo) | |
| context (StreamingContext) |
ToString
#Returns the fully qualified type name of this instance.
Returns: The fully qualified type name.
Overrides: ValueType.ToString
Formats the value of the current instance using the specified format.
Parameters:
| format (string) | The format to use. -or- A null reference (Nothing in Visual Basic) to use the default format defined for the type of the IFormattable implementation. |
| formatProvider (IFormatProvider) | The provider to use to format the value. -or- A null reference (Nothing in Visual Basic) to obtain the numeric format information from the current locale setting of the operating system. |
Returns: The value of the current instance in the specified format.
Operators
| Operation | Result | Description | ||
|---|---|---|---|---|
| Point4d | + | Point4d | Point4d | Sums two Point4d together. |
| Point4d | == | Point4d | bool | Determines whether two Point4d have equal values. |
| Point4d | != | Point4d | bool | Determines whether two Point4d have different values. |
| Point4d | * | Point4d | double | Multiplies two Point4d together, returning the dot (internal) product of the two. This is not the cross product. |
| Point4d | * | double | Point4d | Multiplies a point by a number. |
| Point4d | - | Point4d | Point4d | Subtracts the second point from the first point. |