Public Types |
Public Member Functions |
Static Public Member Functions |
Public Attributes |
Properties |
List of all members

Rotation Struct Reference

Wrapper class which unifies rotation handling of Quaternion, Euler or Z-only (used by 2D). Can store a Quaternion, Euler or Z-axis (for 2d rotation), and implicitly casts between those types. More...

## Public Types | |

enum | RotationTypes |

## Public Member Functions | |

Rotation (float z) | |

Rotation (Quaternion quaternion) | |

Rotation (Vector3 euler) | |

## Static Public Member Functions | |

static implicit | operator float (Rotation rotation) |

static implicit | operator Quaternion (Rotation rotation) |

static implicit | operator Rotation (float z) |

static implicit | operator Rotation (Quaternion quaternion) |

static implicit | operator Rotation (Vector3 euler) |

static implicit | operator Vector3 (Rotation rotation) |

Wrapper class which unifies rotation handling of Quaternion, Euler or Z-only (used by 2D). Can store a Quaternion, Euler or Z-axis (for 2d rotation), and implicitly casts between those types.