Table of Contents

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
Angle
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

x float?

Pitch

y float?

Yaw

z float?

Roll

Fields

Zero

public static readonly Angle Zero

Field Value

Angle

Properties

P

Pitch of angle

public float P { get; set; }

Property Value

float

Pitch

Pitch of angle

public float Pitch { get; set; }

Property Value

float

R

Roll of angle

public float R { get; set; }

Property Value

float

Roll

Roll of angle

public float Roll { get; set; }

Property Value

float

X

Pitch of angle

public float X { get; set; }

Property Value

float

Y

Yaw of angle

public float Y { get; set; }

Property Value

float

Yaw

Yaw of angle

public float Yaw { get; set; }

Property Value

float

Z

Roll of angle

public float Z { get; set; }

Property Value

float

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.