Struct DoublePlane
- Namespace
- OmegaEngine.Foundation.Geometry
- Assembly
- OmegaEngine.Foundation.dll
Defines a plane in three dimensions with double distance accuracy.
[TypeConverter(typeof(DoublePlaneConverter))]
public struct DoublePlane : IEquatable<DoublePlane>
- Implements
- Inherited Members
- Extension Methods
Constructors
DoublePlane(DoubleVector3, Vector3)
Creates a new plane.
public DoublePlane(DoubleVector3 point, Vector3 normal)
Parameters
point
DoubleVector3A point that lies along the plane.
normal
Vector3The normal vector of the plane.
Properties
Normal
The normal vector of the plane.
public Vector3 Normal { get; set; }
Property Value
- Vector3
Point
A point that lies along the plane.
public readonly DoubleVector3 Point { get; }
Property Value
Methods
ApplyOffset(DoubleVector3)
Returns a single-precision standard SlimDX.Plane after subtracting an offset value.
public Plane ApplyOffset(DoubleVector3 offset)
Parameters
offset
DoubleVector3This value is subtracted from the double-precision data before it is casted to single-precision.
Returns
- Plane
The newly positioned SlimDX.Plane.
Equals(DoublePlane)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(DoublePlane other)
Parameters
other
DoublePlaneAn object to compare with this object.
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current instance.
Returns
- bool
true if
obj
and this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
Operators
operator ==(DoublePlane, DoublePlane)
public static bool operator ==(DoublePlane left, DoublePlane right)
Parameters
left
DoublePlaneright
DoublePlane
Returns
operator !=(DoublePlane, DoublePlane)
public static bool operator !=(DoublePlane left, DoublePlane right)
Parameters
left
DoublePlaneright
DoublePlane