Couch
Public Member Functions | Public Attributes | List of all members
Transform Struct Reference

#include <Transform.h>

Public Member Functions

 Transform (Vector3 position, Vector3 rotation)
 
 Transform (Vector3 position, Vector3 rotation, Vector3 scale)
 
Vector3 Forward ()
 
Vector3 Right ()
 
Vector3 Up ()
 
Matrix RotationMatrix ()
 

Public Attributes

Vector3 position
 
Vector3 rotation
 
Vector3 scale
 

Detailed Description

A Transform represents a position, rotation, and scale in 3D space.

Member Function Documentation

◆ Forward()

Vector3 Transform::Forward ( )

Returns a vector that is -Z, rotated by rotation.

◆ Right()

Vector3 Transform::Right ( )

Returns a vector that is +X, rotated by rotation.

◆ RotationMatrix()

Matrix Transform::RotationMatrix ( )

Returns a matrix that, when multiplied by a Vector3 gives a Vector rotated by rotation

◆ Up()

Vector3 Transform::Up ( )

Returns a vector that is +Y, rotated by rotation.

Member Data Documentation

◆ position

Vector3 Transform::position

The position, according to the left-hand rule

◆ rotation

Vector3 Transform::rotation

The rotation, in Euler angles

◆ scale

Vector3 Transform::scale

Scaling along the specified axis


The documentation for this struct was generated from the following files: