Class RectangleProjectedShape
Represents a shape which is projected over rectangle turned to a particular orientation. Specified by four points which can be rotated in space maintaining the same edges length and 90 degrees between adjacent edges.
public abstract class RectangleProjectedShape : Shape
- Inheritance
-
RectangleProjectedShape
- Derived
- Inherited Members
Constructors
RectangleProjectedShape()
Initializes a new instance of the RectangleProjectedShape class.
public RectangleProjectedShape()
RectangleProjectedShape(RectangleF)
Initializes a new instance of the RectangleProjectedShape class.
public RectangleProjectedShape(RectangleF rectangle)
Parameters
rectangle
RectangleFThe rectangle to initialize from.
Properties
Bounds
Gets the object's bounds.
public override RectangleF Bounds { get; }
Property Value
- RectangleF
The object's bounds.
Center
Gets the shape's center.
public override PointF Center { get; }
Property Value
- PointF
The shape's center.
HasSegments
Gets a value indicating whether shape has segments.
public override bool HasSegments { get; }
Property Value
- bool
True
if shape has segments; otherwise,false
.
LeftBottom
Gets the left bottom rectangle point.
public PointF LeftBottom { get; }
Property Value
- PointF
The left bottom rectangle point.
LeftTop
Gets the left top rectangle point.
public PointF LeftTop { get; }
Property Value
- PointF
The left top rectangle point.
RectangleHeight
Gets the rectangle height.
public double RectangleHeight { get; }
Property Value
- double
The rectangle height.
RectangleWidth
Gets the rectangle width.
public double RectangleWidth { get; }
Property Value
- double
The rectangle width.
RightBottom
Gets the right bottom rectangle point.
public PointF RightBottom { get; }
Property Value
- PointF
The right bottom rectangle point.
RightTop
Gets the right top rectangle point.
public PointF RightTop { get; }
Property Value
- PointF
The right top rectangle point.
Methods
Equals(RectangleProjectedShape)
Check if objects are equal.
protected bool Equals(RectangleProjectedShape other)
Parameters
other
RectangleProjectedShapeThe other object.
Returns
- bool
The equality comparison result.
Equals(object)
Determines whether the specified object is equal to this instance.
public override bool Equals(object obj)
Parameters
Returns
GetBounds(Matrix)
Gets the object's bounds.
public override RectangleF GetBounds(Matrix matrix)
Parameters
matrix
MatrixThe matrix to apply before bounds will be calculated.
Returns
- RectangleF
The estimated object's bounds.
GetBounds(Matrix, Pen)
Gets the object's bounds.
public override RectangleF GetBounds(Matrix matrix, Pen pen)
Parameters
matrix
MatrixThe matrix to apply before bounds will be calculated.
pen
PenThe pen to use for object. This can influence the object's bounds size.
Returns
- RectangleF
The estimated object's bounds.
GetHashCode()
Returns a hash code for this instance.
public override int GetHashCode()
Returns
- int
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
Transform(Matrix)
Applies the specified transformation to the shape.
public override void Transform(Matrix transform)
Parameters
transform
MatrixThe transformation to apply.