Class Box
- Namespace
- Graphene
- Assembly
- Graphene-1.0.dll
public sealed class Box : BoxedRecord, IEquatable<Box>
- Inheritance
-
Box
- Implements
- Inherited Members
Constructors
Box()
public Box()
Box(BoxOwnedHandle)
public Box(BoxOwnedHandle handle)
Parameters
handle
BoxOwnedHandle
Properties
Handle
public BoxOwnedHandle Handle { get; }
Property Value
Methods
Alloc()
[Version("1.2")]
public static Box Alloc()
Returns
ContainsBox(Box)
[Version("1.2")]
public bool ContainsBox(Box b)
Parameters
b
Box
Returns
ContainsPoint(Point3D)
[Version("1.2")]
public bool ContainsPoint(Point3D point)
Parameters
point
Point3D
Returns
Empty()
[Version("1.2")]
public static Box Empty()
Returns
Equal(Box)
[Version("1.2")]
public bool Equal(Box b)
Parameters
b
Box
Returns
Equals(Box?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Box? other)
Parameters
other
BoxAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
Free()
[Version("1.2")]
public void Free()
GetDepth()
[Version("1.2")]
public float GetDepth()
Returns
GetGType()
public static Type GetGType()
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
GetHeight()
[Version("1.2")]
public float GetHeight()
Returns
GetWidth()
[Version("1.2")]
public float GetWidth()
Returns
Infinite()
[Version("1.2")]
public static Box Infinite()
Returns
Init(Point3D?, Point3D?)
[Version("1.2")]
public Box Init(Point3D? min, Point3D? max)
Parameters
Returns
InitFromBox(Box)
[Version("1.2")]
public Box InitFromBox(Box src)
Parameters
src
Box
Returns
InitFromPoints(Point3D[])
[Version("1.2")]
public Box InitFromPoints(Point3D[] points)
Parameters
points
Point3D[]
Returns
InitFromVec3(Vec3?, Vec3?)
[Version("1.2")]
public Box InitFromVec3(Vec3? min, Vec3? max)
Parameters
Returns
InitFromVectors(Vec3[])
[Version("1.2")]
public Box InitFromVectors(Vec3[] vectors)
Parameters
vectors
Vec3[]
Returns
MinusOne()
[Version("1.2")]
public static Box MinusOne()
Returns
One()
[Version("1.2")]
public static Box One()
Returns
OneMinusOne()
[Version("1.2")]
public static Box OneMinusOne()
Returns
Zero()
[Version("1.2")]
public static Box Zero()