AutoOpenPnt Module
When Rhino.Scripting.FSharp is opened this module will be auto-opened. It only contains extension members for type Point3d.
Type extensions
Type extension |
Description
|
|
|
|
|
Full Usage:
this.AsString
Parameters:
unit
Returns: string
|
Format 3D point into string with nice floating point number formatting of X, Y and Z But without full type name as in pt.ToString()
Extended Type:
|
|
|
|
Returns the Diamond Angle from this point to another point projected in X-Y plane. The diamond angle is always positive and in the range of 0.0 to 4.0 (for 360 Degrees) 0.0 = Xaxis, going Counter-Clockwise. Ignoring Z component. This is the fastest angle computation since it does not use Math.Cos or Math.Sin. It is useful for radial sorting.
Extended Type:
|
Full Usage:
this.DistanceFromOrigin
Parameters:
unit
Returns: float
Modifiers: inline |
|
Full Usage:
this.DistanceFromOriginSquare
Parameters:
unit
Returns: float
Modifiers: inline |
|
Full Usage:
this.DistanceInXYFromOrigin
Parameters:
unit
Returns: float
Modifiers: inline |
Returns the projected distance from Origin (0, 0, 0). Ignoring the Z component.
Extended Type:
|
Full Usage:
this.DistanceInXYFromOriginSquare
Parameters:
unit
Returns: float
Modifiers: inline |
Returns the projected square distance from Origin (0, 0, 0). Ignoring the Z component.
Extended Type:
|
|
|
|
|
|
|
Full Usage:
this.IsAlmostOrigin
Parameters:
float
Returns: bool
Modifiers: inline |
Returns a boolean indicating wether the absolute value of X, Y and Z is each less than the given tolerance.
Extended Type:
|
Full Usage:
this.IsNotOrigin
Parameters:
unit
Returns: bool
Modifiers: inline |
Returns a boolean indicating if any of X, Y and Z is not exactly 0.0.
Extended Type:
|
Full Usage:
this.IsOrigin
Parameters:
unit
Returns: bool
Modifiers: inline |
Returns a boolean indicating wether X, Y and Z are exactly 0.0.
Extended Type:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Full Usage:
Point3d.create (x, y, z)
Parameters:
float
y : float
z : float
Returns: Point3d
Modifiers: inline |
|
Full Usage:
Point3d.createFromMembersXYZ pt
Parameters:
^T
Returns: Point3d
Modifiers: inline Type parameters: ^T, ^a, ^b, ^c |
|
Full Usage:
Point3f.createFromMembersXYZ pt
Parameters:
^T
Returns: Point3f
Modifiers: inline Type parameters: ^T, ^a, ^b, ^c |
|
Full Usage:
Point3d.createFromMembersxyz pt
Parameters:
^T
Returns: Point3d
Modifiers: inline Type parameters: ^T, ^a, ^b, ^c |
|
Full Usage:
Point3f.createFromMembersxyz pt
Parameters:
^T
Returns: Point3f
Modifiers: inline Type parameters: ^T, ^a, ^b, ^c |
|
|
|
|
|
|
|
Full Usage:
Point3d.distanceFromOriginSquare pt
Parameters:
Point3d
Returns: float
Modifiers: inline |
|
|
|
|
|
|
|
|
|
|
|
|
|
Finds the inner offset point in a corner ( defined by a Polyline from 3 points ( prevPt, thisPt and nextPt) The offset from first and second segment are given separately and can vary (prevDist and nextDist). Use negative distance for outer offset The orientation parameter is only approximate, it might flip the output normal, so that the dot-product is positive. Returns a Value tuple of : - the first segment offset vector in actual length , - second segment offset vector, - the offset corner, - and the unitized normal at the corner. flipped if needed to match orientation of the orientation input vector (positive dot product) If Points are collinear returns: Vector3d.Zero, Vector3d.Zero, Point3d.Origin, Vector3d.Zero
Extended Type:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Offsets two 3D points by two given distances. The fist distance (distHor) is applied in in X-Y plane. The second distance (distNormal) is applied perpendicular to the line (made by the two 3D points) and perpendicular to the horizontal offset direction. This is in World.Z direction if both points are at the same Z level. If points are closer than than 1e-6 units the World.Xaxis is used as first direction and World Z-axis as second direction.
Extended Type:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|