T_Rhino_Geometry_Point3f - mcneel/rhinocommon-api-docs GitHub Wiki

Point3f Structure

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

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

Syntax

C#

[SerializableAttribute]
public struct Point3f : IEquatable<Point3f>, 
	IComparable<Point3f>, IComparable

VB

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

The Point3f type exposes the following members.

Constructors

 

Name Description
Public method Point3f Initializes a new two-dimensional vector from two components.
  Back to Top

Properties

 

Name Description
Public property IsValid Each coordinate of the point must pass the IsValidSingle(Single) test.
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) component of the vector.
Public property Y Gets or sets the Y (second) component of the vector.
Public property Z Gets or sets the Z (third) component of the vector.
  Back to Top

Methods

 

Name Description
Public method CompareTo Compares this Point3f with another Point3f. Component evaluation priority is first X, then Y, then Z.
Public methodCode example DistanceTo Computes the distance between two points.
Public method EpsilonEquals Check that all values in other are withing epsilon of the values in this
Public method Equals(Object) Determines whether the specified System.Object is a Point3f and has the same values as the present point. (Overrides ValueType.Equals(Object).)
Public method Equals(Point3f) Determines whether the specified Point3f has the same values as the present 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 methodStatic member Subtract Subtracts a point from another 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 method 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 Adds a point to another point.
Public operatorStatic member Equality Determines whether two points have equal values.
Public operatorStatic member Explicit(Point3d to Point3f) Converts a double-precision point in a single-precision point. Needs explicit casting to help retain precision.
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 Inequality Determines whether two points 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(Single, Point3f) Multiplies a point by a factor.
Public operatorStatic member Multiply(Point3f, Single) Multiplies a point by a factor.
Public operatorStatic member Subtraction Subtracts a point from another point.
  Back to Top

Version Information

Supported in: 6.0.16224.21491, 5D58w

See Also

Reference

Rhino.Geometry Namespace

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