Class Triangle
- Namespace
- Graphene
- Assembly
- Graphene-1.0.dll
public sealed class Triangle : BoxedRecord, GTypeProvider, InstanceFactory, IEquatable<Triangle>, IDisposable
- Inheritance
-
Triangle
- Implements
- Inherited Members
Constructors
Triangle()
public Triangle()
Triangle(TriangleOwnedHandle)
public Triangle(TriangleOwnedHandle handle)
Parameters
handleTriangleOwnedHandle
Properties
Handle
public TriangleOwnedHandle Handle { get; }
Property Value
Methods
Alloc()
[Version("1.2")]
public static Triangle Alloc()
Returns
ContainsPoint(Point3D)
[Version("1.2")]
public bool ContainsPoint(Point3D p)
Parameters
pPoint3D
Returns
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Equal(Triangle)
[Version("1.2")]
public bool Equal(Triangle b)
Parameters
bTriangle
Returns
Equals(Triangle?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Triangle? other)
Parameters
otherTriangleAn 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
objobjectThe object to compare with the current object.
Returns
Free()
[Version("1.2")]
public void Free()
GetArea()
[Version("1.2")]
public float GetArea()
Returns
GetBarycoords(Point3D?, out Vec2)
[Version("1.2")]
public bool GetBarycoords(Point3D? p, out Vec2 res)
Parameters
Returns
GetBoundingBox(out Box)
[Version("1.2")]
public void GetBoundingBox(out Box res)
Parameters
resBox
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.
GetMidpoint(out Point3D)
[Version("1.2")]
public void GetMidpoint(out Point3D res)
Parameters
resPoint3D
GetNormal(out Vec3)
[Version("1.2")]
public void GetNormal(out Vec3 res)
Parameters
resVec3
GetPlane(out Plane)
[Version("1.2")]
public void GetPlane(out Plane res)
Parameters
resPlane
GetPoints(out Point3D, out Point3D, out Point3D)
[Version("1.2")]
public void GetPoints(out Point3D a, out Point3D b, out Point3D c)
Parameters
GetUv(Point3D?, Vec2, Vec2, Vec2, out Vec2)
[Version("1.10")]
public bool GetUv(Point3D? p, Vec2 uvA, Vec2 uvB, Vec2 uvC, out Vec2 res)
Parameters
Returns
GetVertices(out Vec3, out Vec3, out Vec3)
[Version("1.2")]
public void GetVertices(out Vec3 a, out Vec3 b, out Vec3 c)
Parameters
InitFromPoint3d(Point3D?, Point3D?, Point3D?)
[Version("1.2")]
public Triangle InitFromPoint3d(Point3D? a, Point3D? b, Point3D? c)
Parameters
Returns
InitFromVec3(Vec3?, Vec3?, Vec3?)
[Version("1.2")]
public Triangle InitFromVec3(Vec3? a, Vec3? b, Vec3? c)