T_Rhino_Geometry_Point4d - mcneel/rhinocommon-api-docs GitHub Wiki

Point4d Structure

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) Version: Rhino 6.0

Syntax

C#

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

VB

<SerializableAttribute>
Public Structure Point4d
	Implements ISerializable, IEquatable(Of Point4d)

The Point4d type exposes the following members.

Constructors

 

Name Description
Public method Point4d(Point3d) Initializes a new instance of the Point4d class from the coordinates of a point.
Public method Point4d(Double, Double, Double, Double) Initializes a new instance of the Point4d class based on coordinates.
  Back to Top

Properties

 

Name Description
Public propertyStatic member Unset Gets the value of a point with all coordinates set as RhinoMath.UnsetValue.
Public property W Gets or sets the W (fourth) coordinate -or weight- of this point.
Public property X Gets or sets the X (first) coordinate of this point.
Public property Y Gets or sets the Y (second) coordinate of this point.
Public property Z Gets or sets the Z (third) coordinate of this point.
  Back to Top

Methods

 

Name Description
Public methodStatic member Add Sums two Point4d together. (Provided for languages that do not support operator overloading. You can use the + operator otherwise)
Public method EpsilonEquals Check that all values in other are within epsilon of the values in this
Public method Equals(Object) Determines whether the specified System.Object is Point4d and has same coordinates as the present point. (Overrides ValueType.Equals(Object).)
Public method Equals(Point4d) Determines whether the specified point has same value as the present point.
Public method GetHashCode 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 methodStatic member Multiply Multiplies a point by a number. (Provided for languages that do not support operator overloading. You can use the * operator otherwise)
Public methodStatic member Subtract 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 ToString Returns the fully qualified type name of this instance. (Inherited from ValueType.)
  Back to Top

Operators

 

Name Description
Public operatorStatic member Addition Sums two Point4d together.
Public operatorStatic member Equality Determines whether two Point4d have equal values.
Public operatorStatic member Inequality Determines whether two Point4d have different values.
Public operatorStatic member Multiply(Point4d, Point4d) Multiplies two Point4d together, returning the dot (internal) product of the two. This is not the cross product.
Public operatorStatic member Multiply(Point4d, Double) Multiplies a point by a number.
Public operatorStatic member Subtraction Subtracts the second point from the first point.
  Back to Top

Version Information

Supported in: 6.0.16224.21491, 5D58w

See Also

Reference

Rhino.Geometry Namespace

⚠️ **GitHub.com Fallback** ⚠️