-
Notifications
You must be signed in to change notification settings - Fork 0
DiGi.Rhino.Geometry.Planar
public static class InspectInheritance System.Object → Inspect
Retrieves the semi-major axis length (A) of the specified 2D ellipse.
public static GH_Number? A(this DiGi.Geometry.Planar.Classes.Ellipse2D? ellipse2D);ellipse2D DiGi.Geometry.Planar.Classes.Ellipse2D
The 2D ellipse to inspect.
Grasshopper.Kernel.Types.GH_Number
A Grasshopper.Kernel.Types.GH_Number representing the semi-major axis length, or null if the ellipse is null.
Gets the area of the specified polygonal face.
public static GH_Number? Area(this DiGi.Geometry.Planar.Classes.PolygonalFace2D? polygonalFace2D);polygonalFace2D DiGi.Geometry.Planar.Classes.PolygonalFace2D
The polygonal face to evaluate.
Grasshopper.Kernel.Types.GH_Number
A Grasshopper.Kernel.Types.GH_Number representing the area, or null if the input is null.
Calculates the area of the specified rectangle as a GH_Number.
public static GH_Number? Area(this DiGi.Geometry.Planar.Classes.Rectangle2D? rectangle2D);rectangle2D DiGi.Geometry.Planar.Classes.Rectangle2D
The rectangle to inspect.
Grasshopper.Kernel.Types.GH_Number
A Grasshopper.Kernel.Types.GH_Number representing the area, or null if the rectangle is null.
Retrieves the semi-minor axis length (B) of the specified 2D ellipse.
public static GH_Number? B(this DiGi.Geometry.Planar.Classes.Ellipse2D? ellipse2D);ellipse2D DiGi.Geometry.Planar.Classes.Ellipse2D
The 2D ellipse to inspect.
Grasshopper.Kernel.Types.GH_Number
A Grasshopper.Kernel.Types.GH_Number representing the semi-minor axis length, or null if the ellipse is null.
Gets the bottom-left corner of the specified 2D bounding box.
public static DiGi.Rhino.Geometry.Planar.Classes.GooPoint2D? BottomLeft(this DiGi.Geometry.Planar.Classes.BoundingBox2D? boundingBox2D);boundingBox2D DiGi.Geometry.Planar.Classes.BoundingBox2D
The 2D bounding box to inspect.
GooPoint2D
A GooPoint2D representing the bottom-left corner, or null if the bounding box is null.
Gets the bottom-right corner of the specified 2D bounding box.
public static DiGi.Rhino.Geometry.Planar.Classes.GooPoint2D? BottomRight(this DiGi.Geometry.Planar.Classes.BoundingBox2D? boundingBox2D);boundingBox2D DiGi.Geometry.Planar.Classes.BoundingBox2D
The 2D bounding box to inspect.
GooPoint2D
A GooPoint2D representing the bottom-right corner, or null if the bounding box is null.
Calculates the 2D bounding box for the specified boundable 2D object.
public static DiGi.Rhino.Geometry.Planar.Classes.GooBoundingBox2D? BoundinBox2D(this DiGi.Geometry.Planar.Interfaces.IBoundable2D? boundable2D);boundable2D DiGi.Geometry.Planar.Interfaces.IBoundable2D
The 2D object that implements DiGi.Geometry.Planar.Interfaces.IBoundable2D.
GooBoundingBox2D
A GooBoundingBox2D representing the bounding box, or null if the provided boundable2D is null.
Gets the 2D bounding box of the specified rectangle.
public static DiGi.Rhino.Geometry.Planar.Classes.GooBoundingBox2D? BoundingBox(this DiGi.Geometry.Planar.Classes.Rectangle2D? rectangle2D);rectangle2D DiGi.Geometry.Planar.Classes.Rectangle2D
The rectangle to inspect.
GooBoundingBox2D
A GooBoundingBox2D representing the bounding box, or null if the rectangle is null.
Gets the centroid of the specified 2D bounding box.
public static DiGi.Rhino.Geometry.Planar.Classes.GooPoint2D? Centroid(this DiGi.Geometry.Planar.Classes.BoundingBox2D? boundingBox2D);boundingBox2D DiGi.Geometry.Planar.Classes.BoundingBox2D
The 2D bounding box to inspect.
GooPoint2D
A GooPoint2D representing the centroid, or null if the bounding box is null.
Retrieves the centroid (center point) of the specified 2D ellipse.
public static DiGi.Rhino.Geometry.Planar.Classes.GooPoint2D? Centroid(this DiGi.Geometry.Planar.Classes.Ellipse2D? ellipse2D);ellipse2D DiGi.Geometry.Planar.Classes.Ellipse2D
The 2D ellipse to inspect.
GooPoint2D
A GooPoint2D representing the center point, or null if the ellipse is null.
Gets the centroid of the specified polygonal face.
public static DiGi.Rhino.Geometry.Planar.Classes.GooPoint2D? Centroid(this DiGi.Geometry.Planar.Classes.PolygonalFace2D? polygonalFace2D);polygonalFace2D DiGi.Geometry.Planar.Classes.PolygonalFace2D
The polygonal face to evaluate.
GooPoint2D
A GooPoint2D representing the centroid, or null if the input is null.
Gets the centroid point of the specified rectangle.
public static DiGi.Rhino.Geometry.Planar.Classes.GooPoint2D? Centroid(this DiGi.Geometry.Planar.Classes.Rectangle2D? rectangle2D);rectangle2D DiGi.Geometry.Planar.Classes.Rectangle2D
The rectangle to inspect.
GooPoint2D
A GooPoint2D representing the centroid, or null if the rectangle is null.
Gets the external edge of the specified polygonal face.
public static DiGi.Rhino.Geometry.Planar.Classes.GooPolygonal2D? ExternalEdge(this DiGi.Geometry.Planar.Classes.PolygonalFace2D? polygonalFace2D);polygonalFace2D DiGi.Geometry.Planar.Classes.PolygonalFace2D
The polygonal face to evaluate.
GooPolygonal2D
A GooPolygonal2D representing the outer boundary, or null if the input is null.
Retrieves the focal points of the specified 2D ellipse.
public static System.Collections.Generic.IEnumerable<DiGi.Rhino.Geometry.Planar.Classes.GooPoint2D>? FocalPoints(this DiGi.Geometry.Planar.Classes.Ellipse2D? ellipse2D);ellipse2D DiGi.Geometry.Planar.Classes.Ellipse2D
The 2D ellipse to inspect.
System.Collections.Generic.IEnumerable<GooPoint2D>
A collection of GooPoint2D representing the focal points, or null if the ellipse is null.
Gets the height of the specified 2D bounding box.
public static GH_Number? Height(this DiGi.Geometry.Planar.Classes.BoundingBox2D? boundingBox2D);boundingBox2D DiGi.Geometry.Planar.Classes.BoundingBox2D
The 2D bounding box to inspect.
Grasshopper.Kernel.Types.GH_Number
A Grasshopper.Kernel.Types.GH_Number representing the height, or null if the bounding box is null.
Gets the height of the specified rectangle as a GH_Number.
public static GH_Number? Height(this DiGi.Geometry.Planar.Classes.Rectangle2D? rectangle2D);rectangle2D DiGi.Geometry.Planar.Classes.Rectangle2D
The rectangle to inspect.
Grasshopper.Kernel.Types.GH_Number
A Grasshopper.Kernel.Types.GH_Number representing the height, or null if the rectangle is null.
Gets the vector representing the height direction of the specified rectangle.
public static DiGi.Rhino.Geometry.Planar.Classes.GooVector2D? HeightDirection(this DiGi.Geometry.Planar.Classes.Rectangle2D? rectangle2D);rectangle2D DiGi.Geometry.Planar.Classes.Rectangle2D
The rectangle to inspect.
GooVector2D
A GooVector2D representing the height direction, or null if the rectangle is null.
Gets the internal edges of the specified polygonal face.
public static System.Collections.IEnumerable? InternalEdges(this DiGi.Geometry.Planar.Classes.PolygonalFace2D? polygonalFace2D);polygonalFace2D DiGi.Geometry.Planar.Classes.PolygonalFace2D
The polygonal face to evaluate.
System.Collections.IEnumerable
An enumerable collection of GooPolygonal2D representing internal boundaries, or null if the input is null.
Gets an internal point of the specified polygonal face.
public static DiGi.Rhino.Geometry.Planar.Classes.GooPoint2D? InternalPoint(this DiGi.Geometry.Planar.Classes.PolygonalFace2D? polygonalFace2D);polygonalFace2D DiGi.Geometry.Planar.Classes.PolygonalFace2D
The polygonal face to evaluate.
GooPoint2D
A GooPoint2D representing a point inside the face, or null if the input is null.
Returns the inversed version of the provided 2D vector as a GooVector2D.
public static DiGi.Rhino.Geometry.Planar.Classes.GooVector2D? Inversed(this DiGi.Geometry.Planar.Classes.Vector2D? vector2D);vector2D DiGi.Geometry.Planar.Classes.Vector2D
The 2D vector to invert.
GooVector2D
A GooVector2D containing the inverted vector, or null if the input vector is null.
Returns the length of the provided 2D vector as a Grasshopper.Kernel.Types.GH_Number.
public static GH_Number? Length(this DiGi.Geometry.Planar.Classes.Vector2D? vector2D);vector2D DiGi.Geometry.Planar.Classes.Vector2D
The 2D vector whose length is to be calculated.
Grasshopper.Kernel.Types.GH_Number
A Grasshopper.Kernel.Types.GH_Number representing the length, or null if the input vector is null.
Gets the length of the specified 2D segmentable object as a Grasshopper.Kernel.Types.GH_Number.
public static GH_Number? Length(this DiGi.Geometry.Planar.Interfaces.ISegmentable2D? segmentable2D);segmentable2D DiGi.Geometry.Planar.Interfaces.ISegmentable2D
The 2D segmentable object to inspect.
Grasshopper.Kernel.Types.GH_Number
A Grasshopper.Kernel.Types.GH_Number representing the length, or null if the input is null.
Gets the origin point of the specified rectangle.
public static DiGi.Rhino.Geometry.Planar.Classes.GooPoint2D? Origin(this DiGi.Geometry.Planar.Classes.Rectangle2D? rectangle2D);rectangle2D DiGi.Geometry.Planar.Classes.Rectangle2D
The rectangle to inspect.
GooPoint2D
A GooPoint2D representing the origin, or null if the rectangle is null.
Gets the corner points of the specified 2D bounding box.
public static System.Collections.Generic.IEnumerable<DiGi.Rhino.Geometry.Planar.Classes.GooPoint2D>? Points(this DiGi.Geometry.Planar.Classes.BoundingBox2D? boundingBox2D);boundingBox2D DiGi.Geometry.Planar.Classes.BoundingBox2D
The 2D bounding box to inspect.
System.Collections.Generic.IEnumerable<GooPoint2D>
A collection of GooPoint2D representing the corners, or null if the bounding box is null.
Gets the corner points of the specified rectangle converted to GooPoint2D objects.
public static System.Collections.Generic.IEnumerable<DiGi.Rhino.Geometry.Planar.Classes.GooPoint2D>? Points(this DiGi.Geometry.Planar.Classes.Rectangle2D? rectangle2D);rectangle2D DiGi.Geometry.Planar.Classes.Rectangle2D
The rectangle to inspect.
System.Collections.Generic.IEnumerable<GooPoint2D>
An enumerable collection of GooPoint2D, or null if the rectangle is null.
Retrieves the points of the specified 2D segmentable object as a collection of GooPoint2D.
public static System.Collections.Generic.IEnumerable<DiGi.Rhino.Geometry.Planar.Classes.GooPoint2D>? Points(this DiGi.Geometry.Planar.Interfaces.ISegmentable2D? segmentable2D);segmentable2D DiGi.Geometry.Planar.Interfaces.ISegmentable2D
The 2D segmentable object to inspect.
System.Collections.Generic.IEnumerable<GooPoint2D>
An enumerable collection of GooPoint2D, or null if the input is null.
Gets the bounding rectangle of the specified 2D segmentable object as a GooRectangle2D.
public static DiGi.Rhino.Geometry.Planar.Classes.GooRectangle2D? Rectangle2D(this DiGi.Geometry.Planar.Interfaces.ISegmentable2D? segmentable2D);segmentable2D DiGi.Geometry.Planar.Interfaces.ISegmentable2D
The 2D segmentable object to inspect.
GooRectangle2D
A GooRectangle2D representing the bounding rectangle, or null if the input is null.
Gets the boundary segments of the specified 2D bounding box.
public static System.Collections.Generic.IEnumerable<DiGi.Rhino.Geometry.Planar.Classes.GooSegment2D>? Segments(this DiGi.Geometry.Planar.Classes.BoundingBox2D? boundingBox2D);boundingBox2D DiGi.Geometry.Planar.Classes.BoundingBox2D
The 2D bounding box to inspect.
System.Collections.Generic.IEnumerable<GooSegment2D>
A collection of GooSegment2D representing the edges, or null if the bounding box is null.
Retrieves the segments of the specified 2D segmentable object as a collection of GooSegment2D.
public static System.Collections.Generic.IEnumerable<DiGi.Rhino.Geometry.Planar.Classes.GooSegment2D>? Segments(this DiGi.Geometry.Planar.Interfaces.ISegmentable2D? segmentable2D);segmentable2D DiGi.Geometry.Planar.Interfaces.ISegmentable2D
The 2D segmentable object to inspect.
System.Collections.Generic.IEnumerable<GooSegment2D>
An enumerable collection of GooSegment2D, or null if the input is null.
Gets the top-left corner of the specified 2D bounding box.
public static DiGi.Rhino.Geometry.Planar.Classes.GooPoint2D? TopLeft(this DiGi.Geometry.Planar.Classes.BoundingBox2D? boundingBox2D);boundingBox2D DiGi.Geometry.Planar.Classes.BoundingBox2D
The 2D bounding box to inspect.
GooPoint2D
A GooPoint2D representing the top-left corner, or null if the bounding box is null.
Gets the top-right corner of the specified 2D bounding box.
public static DiGi.Rhino.Geometry.Planar.Classes.GooPoint2D? TopRight(this DiGi.Geometry.Planar.Classes.BoundingBox2D? boundingBox2D);boundingBox2D DiGi.Geometry.Planar.Classes.BoundingBox2D
The 2D bounding box to inspect.
GooPoint2D
A GooPoint2D representing the top-right corner, or null if the bounding box is null.
Returns the unit (normalized) version of the provided 2D vector as a GooVector2D.
public static DiGi.Rhino.Geometry.Planar.Classes.GooVector2D? Unit(this DiGi.Geometry.Planar.Classes.Vector2D? vector2D);vector2D DiGi.Geometry.Planar.Classes.Vector2D
The 2D vector to normalize.
GooVector2D
A GooVector2D containing the unit vector, or null if the input vector is null.
Gets the width of the specified 2D bounding box.
public static GH_Number? Width(this DiGi.Geometry.Planar.Classes.BoundingBox2D? boundingBox2D);boundingBox2D DiGi.Geometry.Planar.Classes.BoundingBox2D
The 2D bounding box to inspect.
Grasshopper.Kernel.Types.GH_Number
A Grasshopper.Kernel.Types.GH_Number representing the width, or null if the bounding box is null.
Gets the width of the specified rectangle as a GH_Number.
public static GH_Number? Width(this DiGi.Geometry.Planar.Classes.Rectangle2D? rectangle2D);rectangle2D DiGi.Geometry.Planar.Classes.Rectangle2D
The rectangle to inspect.
Grasshopper.Kernel.Types.GH_Number
A Grasshopper.Kernel.Types.GH_Number representing the width, or null if the rectangle is null.
Gets the vector representing the width direction of the specified rectangle.
public static DiGi.Rhino.Geometry.Planar.Classes.GooVector2D? WidthDirection(this DiGi.Geometry.Planar.Classes.Rectangle2D? rectangle2D);rectangle2D DiGi.Geometry.Planar.Classes.Rectangle2D
The rectangle to inspect.
GooVector2D
A GooVector2D representing the width direction, or null if the rectangle is null.
Extracts the X coordinate of a 2D point as a Grasshopper number.
public static GH_Number? X(this DiGi.Geometry.Planar.Classes.Point2D? point2D);point2D DiGi.Geometry.Planar.Classes.Point2D
The 2D point to inspect.
Grasshopper.Kernel.Types.GH_Number
A Grasshopper.Kernel.Types.GH_Number representing the X coordinate, or null if the input point is null.
Returns the X coordinate of the provided 2D vector as a Grasshopper.Kernel.Types.GH_Number.
public static GH_Number? X(this DiGi.Geometry.Planar.Classes.Vector2D? vector2D);vector2D DiGi.Geometry.Planar.Classes.Vector2D
The 2D vector whose X coordinate is to be retrieved.
Grasshopper.Kernel.Types.GH_Number
A Grasshopper.Kernel.Types.GH_Number representing the X coordinate, or null if the input vector is null.
Extracts the Y coordinate of a 2D point as a Grasshopper number.
public static GH_Number? Y(this DiGi.Geometry.Planar.Classes.Point2D? point2D);point2D DiGi.Geometry.Planar.Classes.Point2D
The 2D point to inspect.
Grasshopper.Kernel.Types.GH_Number
A Grasshopper.Kernel.Types.GH_Number representing the Y coordinate, or null if the input point is null.
Returns the Y coordinate of the provided 2D vector as a Grasshopper.Kernel.Types.GH_Number.
public static GH_Number? Y(this DiGi.Geometry.Planar.Classes.Vector2D? vector2D);vector2D DiGi.Geometry.Planar.Classes.Vector2D
The 2D vector whose Y coordinate is to be retrieved.
Grasshopper.Kernel.Types.GH_Number
A Grasshopper.Kernel.Types.GH_Number representing the Y coordinate, or null if the input vector is null.