Geometry2d Class

This is the base class all 2d primitives should inherit.
Public MustInherit Class Geometry2d 
Implements IExtents2d
This language is not supported or no code example is available.
public abstract class Geometry2d : IExtents2d
This language is not supported or no code example is available.
public ref class Geometry2d abstract  : public IExtents2d^
This language is not supported or no code example is available.
public abstract class Geometry2d 
implements IExtents2d
This language is not supported or no code example is available.
Name Description
Public constructor Geometry2d() Default constructor. Actually does nothing.
Public constructor Geometry2d(Geometry2d) Copy constructor.
Top
Name Description
Public property Extents Gets the bounding box of this object.
Top
Methods
 
Name Description
Public method Distance(Point2d) Computes the distance from a point to this object.
Public method Mirror(Point2d, Point2d) Reflects the object over a line specified by two points.
Public method Rotate(double) Rotates the object around origo.
Public method Rotate(double, Point2d) Rotates the object around a given point.
Public method Scale(double) Scales the object with a factor. A factor larger than 1.0 makes it larger, and less than 1.0 smaller.
Public method Scale(double, Point2d) Scales the object using a given scaling center. A factor larger than 1.0 makes it larger, and less than 1.0 smaller.
Public method ToPoly() Converts the object to a Poly2d representation. Some objects that cannot be represented using a Poly2d only, eg. Region2d. Use with care!
Public method ToPoly(double) Converts the object to a Poly2d representation. Some objects that cannot be represented using a Poly2d only, eg. Region2d. Use with care!
Public method ToRegion(double) Converts the object to a Region2d representation. Some objects that cannot be represented exactly uses a tolerance to approximate themselves to a region.
Public method Transform(Matrix2d) Transforms the object with a matrix.
Public method Translate(double, double) Moves the object a specified distance.
Public method Translate(Vector2d) Moves the 2d object using a vector.
Top
Fields
 
Name Description
Public field Tag User data for this object. This can be used freely for any purpose.
Top

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8

In this article

Definition