Class Angle
- Namespace
- CounterStrikeSharp.API.Modules.Utils
- Assembly
- CounterStrikeSharp.API.dll
A Angle
object represents 3D Euler angle, offset from the cardinal Z axis.
Each angle contains three rotation values.
- Xpitch +down/-up
- Yyaw +left/-right
- Zroll +right/-left
public class Angle : NativeObject
- Inheritance
-
objectAngle
- Inherited Members
Constructors
Angle(nint)
public Angle(nint pointer)
Parameters
pointer
nint
Angle(float?, float?, float?)
Creates new angle with the supplied Pitch, Yaw and Roll values.
public Angle(float? x = null, float? y = null, float? z = null)
Parameters
Fields
Zero
public static readonly Angle Zero
Field Value
Properties
P
Pitch of angle
public float P { get; set; }
Property Value
Pitch
Pitch of angle
public float Pitch { get; set; }
Property Value
R
Roll of angle
public float R { get; set; }
Property Value
Roll
Roll of angle
public float Roll { get; set; }
Property Value
X
Pitch of angle
public float X { get; set; }
Property Value
Y
Yaw of angle
public float Y { get; set; }
Property Value
Yaw
Yaw of angle
public float Yaw { get; set; }
Property Value
Z
Roll of angle
public float Z { get; set; }
Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.