Point3 Structure

3 dimensional point.

Definition

Namespace: Karamba.Geometry
Assembly: KarambaCommon (in KarambaCommon.dll) Version: 3.0.8.0+eb23a7103f0eca0b6d808121e15fec6899194e15
C#
[SerializableAttribute]
public struct Point3 : IEquatable<Point3>, 
	IComparable<Point3>, ISerializable
Inheritance
Object    ValueType    Point3
Implements
IComparablePoint3, IEquatablePoint3, ISerializable

Constructors

Point3(Point3) Initializes a new instance of the Point3 struct. Create point from another point..
Point3(Vec3d) Initializes a new instance of the Point3 struct. Create point from a c++ vector.
Point3(Vector3) Initializes a new instance of the Point3 struct. Create point from vector.
Point3(SerializationInfo, StreamingContext) Initializes a new instance of the Point3 struct.
Point3(Double, Double, Double) Initializes a new instance of the Point3 struct. Create point.

Properties

IsUnset Gets a value indicating whether this point is NaN point.
Item Gets or sets a point component at the given index.
Length Gets the length of vector.
SqLength Gets the squared length of vector.
Unset Gets the unset Point3. (Not a point).
vec3d Gets the C#-vector from a C++-vector.
X Gets or sets the X-coordinate.
Y Gets or sets the Y-coordinate.
Z Gets or sets the Z-coordinate.
Zero Gets the zero vector.

Methods

Add In-place adds a vector to this point.
CompareTo compares two points.
DistanceTo Get distance to point.
DistanceToSquared Returns the squared distance to other point.
Equals(Object) Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object))
Equals(Point3) test whether another point is equal to this point.
Equals(Point3, Double) check whether another vector is equal to this vector within a given tolerance.
GetHashCode generate hash-code for the point.
(Overrides ValueTypeGetHashCode)
GetObjectData Serializes a Point3.
GetType Gets the Type of the current instance.
(Inherited from Object)
PointsFromArray Converts an array of points to a list of points.
PointsToArray Converts a list of points to an array of doubles for faster serialization.
ToArray Transform point into array.
ToString Returns the fully qualified type name of this instance.
(Overrides ValueTypeToString)
ToVector3 Converts to Vector3.
Transform Transforms a point.

Operators

Addition(Point3, Point3) Add two points.
Addition(Point3, Vector3) Add vector to point.
Addition(Vector3, Point3) Add vector to point.
Division(Point3, Double) Divide point by constant.
Equality(Point3, Point3) Compares vectors for equality.
GreaterThan(Point3, Point3) Compare two points for greater than.
Inequality(Point3, Point3) Compares two points for not equal.
LessThan(Point3, Point3) Compare points for smaller than.
Multiply(Double, Point3) Multiply point by constant.
Multiply(Point3, Double) Multiply point by constant.
Subtraction(Point3, Point3) Subtract two points to get a vector.
Subtraction(Point3, Vector3) Substract vector from point.

Extension Methods

ContainerType test if object is (a container like) a list or an array.
(Defined by MiniUtil)
Convert Converts to Rhino's Point3d.
(Defined by ToRhino)
ConvertToFebVec3d Converts to Vec3d.
(Defined by ToFeb)

See Also