Struct Vec3
- Namespace
- TaleWorlds.Library
- Assembly
- TaleWorlds.Library.dll
public struct Vec3
- Inherited Members
- Extension Methods
Constructors
Vec3(Vector3)
public Vec3(Vector3 vector3)
Parameters
vector3
Vector3
Vec3(float, float, float, float)
public Vec3(float x = 0, float y = 0, float z = 0, float w = -1)
Parameters
Vec3(Vec2, float, float)
public Vec3(Vec2 xy, float z = 0, float w = -1)
Parameters
Vec3(Vec3, float)
public Vec3(Vec3 c, float w = -1)
Parameters
Fields
Forward
public static readonly Vec3 Forward
Field Value
Invalid
public static readonly Vec3 Invalid
Field Value
One
public static readonly Vec3 One
Field Value
Side
public static readonly Vec3 Side
Field Value
Up
public static readonly Vec3 Up
Field Value
Zero
public static readonly Vec3 Zero
Field Value
w
public float w
Field Value
x
public float x
Field Value
y
public float y
Field Value
z
public float z
Field Value
Properties
AsVec2
public Vec2 AsVec2 { get; set; }
Property Value
IsNonZero
public bool IsNonZero { get; }
Property Value
IsUnit
public bool IsUnit { get; }
Property Value
IsValid
public bool IsValid { get; }
Property Value
IsValidXYZW
public bool IsValidXYZW { get; }
Property Value
this[int]
public float this[int i] { get; set; }
Parameters
i
int
Property Value
Length
public float Length { get; }
Property Value
LengthSquared
public float LengthSquared { get; }
Property Value
RotationX
public float RotationX { get; }
Property Value
RotationZ
public float RotationZ { get; }
Property Value
ToARGB
public uint ToARGB { get; }
Property Value
X
public float X { get; }
Property Value
Y
public float Y { get; }
Property Value
Z
public float Z { get; }
Property Value
Methods
Abs(Vec3)
public static Vec3 Abs(Vec3 vec)
Parameters
vec
Vec3
Returns
AngleBetweenTwoVectors(Vec3, Vec3)
public static float AngleBetweenTwoVectors(Vec3 v1, Vec3 v2)
Parameters
Returns
ClampedCopy(float, float)
public Vec3 ClampedCopy(float min, float max)
Parameters
Returns
ClampedCopy(float, float, out bool)
public Vec3 ClampedCopy(float min, float max, out bool valueClamped)
Parameters
Returns
CrossProduct(Vec3, Vec3)
public static Vec3 CrossProduct(Vec3 va, Vec3 vb)
Parameters
Returns
Distance(Vec3)
public float Distance(Vec3 v)
Parameters
v
Vec3
Returns
DistanceSquared(Vec3)
public float DistanceSquared(Vec3 v)
Parameters
v
Vec3
Returns
DotProduct(Vec3, Vec3)
public static float DotProduct(Vec3 v1, Vec3 v2)
Parameters
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
Lerp(Vec3, Vec3, float)
public static Vec3 Lerp(Vec3 v1, Vec3 v2, float alpha)
Parameters
Returns
NearlyEquals(Vec3, float)
public bool NearlyEquals(Vec3 v, float epsilon = 1E-05)
Parameters
Returns
Normalize()
public float Normalize()
Returns
NormalizeWithoutChangingZ()
public void NormalizeWithoutChangingZ()
NormalizedCopy()
public Vec3 NormalizedCopy()
Returns
Parse(string)
public static Vec3 Parse(string input)
Parameters
input
string
Returns
ProjectOnUnitVector(Vec3)
public Vec3 ProjectOnUnitVector(Vec3 ov)
Parameters
ov
Vec3
Returns
Reflect(Vec3)
public Vec3 Reflect(Vec3 normal)
Parameters
normal
Vec3
Returns
RotateAboutAnArbitraryVector(Vec3, float)
public Vec3 RotateAboutAnArbitraryVector(Vec3 vec, float a)
Parameters
Returns
RotateAboutX(float)
public void RotateAboutX(float a)
Parameters
a
float
RotateAboutY(float)
public void RotateAboutY(float a)
Parameters
a
float
RotateAboutZ(float)
public void RotateAboutZ(float a)
Parameters
a
float
Slerp(Vec3, Vec3, float)
public static Vec3 Slerp(Vec3 start, Vec3 end, float percent)
Parameters
Returns
ToString()
public override string ToString()
Returns
Vec3Max(Vec3, Vec3)
public static Vec3 Vec3Max(Vec3 v1, Vec3 v2)
Parameters
Returns
Vec3Min(Vec3, Vec3)
public static Vec3 Vec3Min(Vec3 v1, Vec3 v2)
Parameters
Returns
Operators
operator +(Vec3, Vec3)
public static Vec3 operator +(Vec3 v1, Vec3 v2)
Parameters
Returns
operator /(Vec3, float)
public static Vec3 operator /(Vec3 v, float f)
Parameters
Returns
operator ==(Vec3, Vec3)
public static bool operator ==(Vec3 v1, Vec3 v2)
Parameters
Returns
explicit operator Vector3(Vec3)
public static explicit operator Vector3(Vec3 vec3)
Parameters
vec3
Vec3
Returns
operator !=(Vec3, Vec3)
public static bool operator !=(Vec3 v1, Vec3 v2)
Parameters
Returns
operator *(float, Vec3)
public static Vec3 operator *(float f, Vec3 v)
Parameters
Returns
operator *(Vec3, float)
public static Vec3 operator *(Vec3 v, float f)
Parameters
Returns
operator *(Vec3, MatrixFrame)
public static Vec3 operator *(Vec3 v, MatrixFrame frame)
Parameters
v
Vec3frame
MatrixFrame
Returns
operator -(Vec3, Vec3)
public static Vec3 operator -(Vec3 v1, Vec3 v2)
Parameters
Returns
operator -(Vec3)
public static Vec3 operator -(Vec3 v)
Parameters
v
Vec3
Returns
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).