Sinespace Client
2023.2.17543
Client-side scripting for Sinespace
|
Implements a 3D Vector class used for storing positions & scales More...
Public Member Functions | |
SVector (float x, float y, float z) | |
Creates a SVector from X, Y and Z position information More... | |
SVector | Add (SVector other) |
Adds two SVectors together by combining the individual components of the two vectors More... | |
SVector | Add (float other) |
Adds a single value to an existing vector and returns the combined result. Adds across each axis and returns the result. More... | |
SVector | Scale (SVector other) |
Scales (multiplies) two SVectors together More... | |
SVector | Scale (float other) |
SVector | Divide (SVector other) |
SVector | Divide (float other) |
float | Distance (SVector other) |
float | SquareDistance (SVector other) |
bool | InRange (SVector other, float range) |
SVector | Cross (SVector other) |
SVector | Lerp (SVector other, float t) |
SVector | Slerp (SVector other, float t) |
SVector | MoveTowards (SVector other, float maxDistance) |
float | Dot (SVector other) |
bool | Equals (SVector other) |
override string | ToString () |
Static Public Member Functions | |
static SVector | New (float x, float y, float z) |
Constructs a new SVector (for easier Lua Access) More... | |
static SVector | operator+ (SVector a, SVector b) |
static SVector | operator- (SVector a, SVector b) |
static SVector | operator* (SVector a, SVector b) |
static SVector | operator/ (SVector a, SVector b) |
static SVector | operator* (SVector a, float b) |
static SVector | operator/ (SVector a, float b) |
static SVector | operator+ (SVector a, float b) |
static SVector | operator- (SVector a, float b) |
Public Attributes | |
float | X |
Axis parameters More... | |
float | Y |
float | Z |
Static Public Attributes | |
static readonly SVector | Up = new SVector(0, 1, 0) |
static readonly SVector | Down = new SVector(0, -1, 0) |
static readonly SVector | Left = new SVector(-1, 0, 0) |
static readonly SVector | Right = new SVector(1, 0, 0) |
static readonly SVector | Forward = new SVector(0, 0, 1) |
static readonly SVector | Back = new SVector(0, 0, -1) |
static readonly SVector | Zero = new SVector(0, 0, 0) |
static readonly SVector | One = new SVector(1, 1, 1) |
static readonly SVector | MaxValue = new SVector(float.MaxValue, float.MaxValue, float.MaxValue) |
static readonly SVector | MinValue = new SVector(float.MinValue, float.MinValue, float.MinValue) |
Properties | |
float | Magnitude [get] |
SVector | Normalised [get] |
Implements a 3D Vector class used for storing positions & scales
Contains three read-write properties: X, Y and Z which are implemented presently as 32-bit floats
SineSpace.Scripting.Types.SVector.SVector | ( | float | x, |
float | y, | ||
float | z | ||
) |
Creates a SVector from X, Y and Z position information
x | X Axis Value |
y | Y Axis Value |
z | Z Axis Value |
SVector SineSpace.Scripting.Types.SVector.Add | ( | float | other | ) |
Adds a single value to an existing vector and returns the combined result. Adds across each axis and returns the result.
other | A single value to add to each axis |
Adds two SVectors together by combining the individual components of the two vectors
other | The other vector to add to this one |
float SineSpace.Scripting.Types.SVector.Distance | ( | SVector | other | ) |
SVector SineSpace.Scripting.Types.SVector.Divide | ( | float | other | ) |
float SineSpace.Scripting.Types.SVector.Dot | ( | SVector | other | ) |
bool SineSpace.Scripting.Types.SVector.Equals | ( | SVector | other | ) |
bool SineSpace.Scripting.Types.SVector.InRange | ( | SVector | other, |
float | range | ||
) |
|
static |
Constructs a new SVector (for easier Lua Access)
local vector = Vector.New(x,y,z)
x | |
y | |
z |
SVector SineSpace.Scripting.Types.SVector.Scale | ( | float | other | ) |
Scales (multiplies) two SVectors together
other | The other SVector to scale (multiply) the current value with |
float SineSpace.Scripting.Types.SVector.SquareDistance | ( | SVector | other | ) |
override string SineSpace.Scripting.Types.SVector.ToString | ( | ) |
|
static |
|
static |
float SineSpace.Scripting.Types.SVector.X |
Axis parameters
float SineSpace.Scripting.Types.SVector.Y |
float SineSpace.Scripting.Types.SVector.Z |
|
get |
|
get |