T_Rhino_Geometry_Point3d - mcneel/rhinocommon-api-docs GitHub Wiki

Point3d Structure

Represents the three coordinates of a point in three-dimensional space, using Double-precision floating point values.

Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0

Syntax

C#

[SerializableAttribute]
public struct Point3d : ISerializable, IEquatable<Point3d>, 
	IComparable<Point3d>, IComparable

VB

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

The Point3d type exposes the following members.

Constructors

 

Name Description
Public method Point3d(Point3d) Initializes a new point by copying coordinates from another point.
Public method Point3d(Point3f) Initializes a new point by copying coordinates from a single-precision point.
Public method Point3d(Point4d) Initializes a new point by copying coordinates from a four-dimensional point. The first three coordinates are divided by the last one. If the W (fourth) dimension of the input point is zero, then it will be just discarded.
Public method Point3d(Vector3d) Initializes a new point by copying coordinates from the components of a vector.
Public methodCode example Point3d(Double, Double, Double) Initializes a new point by defining the X, Y and Z coordinates.
  Back to Top

Properties

 

Name Description
Public property IsValid Each coordinate of the point must pass the IsValidDouble(Double) test.
Public property Item Gets or sets an indexed coordinate of this point.
Public property MaximumCoordinate Gets the largest (both positive and negative) valid coordinate in this point, or RhinoMath.UnsetValue if no coordinate is valid.
Public property MinimumCoordinate Gets the smallest (both positive and negative) coordinate value in this point.
Public propertyStatic member Origin Gets the value of a point at location 0,0,0.
Public propertyStatic member Unset Gets the value of a point at location RhinoMath.UnsetValue,RhinoMath.UnsetValue,RhinoMath.UnsetValue.
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(Point3d, Point3d) Sums two Point3d instances. (Provided for languages that do not support operator overloading. You can use the + operator otherwise)
Public methodStatic member Add(Point3d, Vector3d) Sums up a point and a vector, and returns a new point. (Provided for languages that do not support operator overloading. You can use the + operator otherwise)
Public methodStatic member Add(Point3d, Vector3f) Sums up a point and a vector, and returns a new point. (Provided for languages that do not support operator overloading. You can use the + operator otherwise)
Public methodStatic member Add(Vector3d, Point3d) Sums up a point and a vector, and returns a new point. (Provided for languages that do not support operator overloading. You can use the + operator otherwise)
Public methodStatic member ArePointsCoplanar Determines whether a set of points is coplanar within a given tolerance.
Public method CompareTo Compares this Point3d with another Point3d. Component evaluation priority is first X, then Y, then Z.
Public methodStatic member CullDuplicates Removes duplicates in the supplied set of points.
Public methodCode example DistanceTo Computes the distance between two points.
Public method DistanceToSquared Computes the square of the distance between two points. This method is usually largely faster than DistanceTo().
Public methodStatic member Divide Divides a Point3d by a number. (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 Object is a Point3d and has the same values as the present point. (Overrides ValueType.Equals(Object).)
Public method Equals(Point3d) Determines whether the specified Point3d has the same values as the present point.
Public methodStatic member FromPoint3f Converts a single-precision point in a double-precision point.
Public method GetHashCode Computes a hash code for the present point. (Overrides ValueType.GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Interpolate Interpolate between two points.
Public methodStatic member Multiply(Double, Point3d) Multiplies a Point3d by a number. (Provided for languages that do not support operator overloading. You can use the * operator otherwise)
Public methodStatic member Multiply(Point3d, Double) Multiplies a Point3d by a number. (Provided for languages that do not support operator overloading. You can use the * operator otherwise)
Public methodStatic member SortAndCullPointList Orders a set of points so they will be connected in a "reasonable polyline" order. Also, removes points from the list if their common distance exceeds a specified threshold.
Public methodStatic member Subtract(Point3d, Point3d) Subtracts a point from another point. (Provided for languages that do not support operator overloading. You can use the - operator otherwise)
Public methodStatic member Subtract(Point3d, Vector3d) Subtracts a vector from a point. (Provided for languages that do not support operator overloading. You can use the - operator otherwise)
Public method ToString Constructs the string representation for the current point. (Overrides ValueType.ToString().)
Public methodCode example Transform Transforms the present point in place. The transformation matrix acts on the left of the point. i.e., result = transformation*point
  Back to Top

Operators

 

Name Description
Public operatorStatic member Addition(Point3d, Point3d) Sums two Point3d instances.
Public operatorStatic member Addition(Point3d, Vector3d) Sums up a point and a vector, and returns a new point.
Public operatorStatic member Addition(Point3d, Vector3f) Sums up a point and a vector, and returns a new point.
Public operatorStatic member Addition(Vector3d, Point3d) Sums up a point and a vector, and returns a new point.
Public operatorStatic member Division Divides a Point3d by a number.
Public operatorStatic member Equality Determines whether two Point3d have equal values.
Public operatorStatic member Explicit(Point3d to Vector3d) Converts a point in a vector, needing casting.
Public operatorStatic member Explicit(Vector3d to Point3d) Converts a vector in a point, needing casting.
Public operatorStatic member GreaterThan Determines whether the first specified point comes after (has superior sorting value than) the second point. Coordinates evaluation priority is first X, then Y, then Z.
Public operatorStatic member GreaterThanOrEqual Determines whether the first specified point comes after (has superior sorting value than) the second point, or it is equal to it. Coordinates evaluation priority is first X, then Y, then Z.
Public operatorStatic member Implicit(Point3d to ControlPoint) Converts a point in a control point, without needing casting.
Public operatorStatic member Implicit(Point3f to Point3d) Converts a single-precision point in a double-precision point, without needing casting.
Public operatorStatic member Inequality Determines whether two Point3d have different values.
Public operatorStatic member LessThan Determines whether the first specified point comes before (has inferior sorting value than) the second point. Coordinates evaluation priority is first X, then Y, then Z.
Public operatorStatic member LessThanOrEqual Determines whether the first specified point comes before (has inferior sorting value than) the second point, or it is equal to it. Coordinates evaluation priority is first X, then Y, then Z.
Public operatorStatic member Multiply(Double, Point3d) Multiplies a Point3d by a number.
Public operatorStatic member Multiply(Point3d, Double) Multiplies a Point3d by a number.
Public operatorStatic member Subtraction(Point3d, Point3d) Subtracts a point from another point.
Public operatorStatic member Subtraction(Point3d, Vector3d) Subtracts a vector from a point.
Public operatorStatic member UnaryNegation Computes the additive inverse of all coordinates in the point, and returns the new point.
  Back to Top

Version Information

Supported in: 6.0.16224.21491, 5D58w

See Also

Reference

Rhino.Geometry Namespace

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