Struct NiPoint3
- Namespace
- SkyrimForge.Game
- Assembly
- SkyrimForge.dll
A three-float position or vector, matching the game's NiPoint3.
public readonly struct NiPoint3 : IEquatable<NiPoint3>
- Implements
- Inherited Members
Constructors
NiPoint3(float, float, float)
A three-float position or vector, matching the game's NiPoint3.
public NiPoint3(float X, float Y, float Z)
Parameters
Properties
X
public float X { get; init; }
Property Value
Y
public float Y { get; init; }
Property Value
Z
public float Z { get; init; }
Property Value
Methods
Deconstruct(out float, out float, out float)
public void Deconstruct(out float X, out float Y, out float Z)
Parameters
Equals(NiPoint3)
public bool Equals(NiPoint3 other)
Parameters
otherNiPoint3
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
GetCompassDirection(NiPoint3)
Gets the compass direction nearest the bearing from this point to other, with +Y as north and +X as east.
public CompassDirection GetCompassDirection(NiPoint3 other)
Parameters
otherNiPoint3
Returns
- CompassDirection
The direction, which is north for a point directly above or below this one.
GetDistance(NiPoint3)
Gets the distance to other.
public float GetDistance(NiPoint3 other)
Parameters
otherNiPoint3The other point.
Returns
- float
The Euclidean distance, in game units.
GetHashCode()
public override int GetHashCode()
Returns
GetHorizontalDistance(NiPoint3)
Gets the distance to other across the X and Y axes, in game units.
public float GetHorizontalDistance(NiPoint3 other)
Parameters
otherNiPoint3
Returns
GetHorizontalDistanceToSegment(NiPoint3, NiPoint3)
Gets the distance across the X and Y axes to the nearest point of the segment from start to end, in game units.
public float GetHorizontalDistanceToSegment(NiPoint3 start, NiPoint3 end)
Parameters
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(NiPoint3, NiPoint3)
public static bool operator ==(NiPoint3 left, NiPoint3 right)
Parameters
Returns
operator !=(NiPoint3, NiPoint3)
public static bool operator !=(NiPoint3 left, NiPoint3 right)