Class Sphere
- Namespace
- Graphene
- Assembly
- Graphene-1.0.dll
public sealed class Sphere : BoxedRecord, IEquatable<Sphere>
- Inheritance
-
Sphere
- Implements
- Inherited Members
Constructors
Sphere()
public Sphere()
Sphere(SphereOwnedHandle)
public Sphere(SphereOwnedHandle handle)
Parameters
handle
SphereOwnedHandle
Properties
Handle
public SphereOwnedHandle Handle { get; }
Property Value
Methods
Alloc()
[Version("1.2")]
public static Sphere Alloc()
Returns
ContainsPoint(Point3D)
[Version("1.2")]
public bool ContainsPoint(Point3D point)
Parameters
point
Point3D
Returns
Distance(Point3D)
[Version("1.2")]
public float Distance(Point3D point)
Parameters
point
Point3D
Returns
Equal(Sphere)
[Version("1.2")]
public bool Equal(Sphere b)
Parameters
b
Sphere
Returns
Equals(Sphere?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Sphere? other)
Parameters
other
SphereAn 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()
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.
GetRadius()
[Version("1.2")]
public float GetRadius()
Returns
Init(Point3D?, float)
[Version("1.2")]
public Sphere Init(Point3D? center, float radius)
Parameters
Returns
InitFromPoints(Point3D[], Point3D?)
[Version("1.2")]
public Sphere InitFromPoints(Point3D[] points, Point3D? center)
Parameters
Returns
InitFromVectors(Vec3[], Point3D?)
[Version("1.2")]
public Sphere InitFromVectors(Vec3[] vectors, Point3D? center)
Parameters
Returns
IsEmpty()
[Version("1.2")]
public bool IsEmpty()