struct
CrShader::Language::Types::Vec2
- CrShader::Language::Types::Vec2
- Struct
- Value
- Object
Overview
2-component single-precision floating-point vector (vec2).
Defined in:
crshader/language/types.crConstructors
Instance Method Summary
- #*(other : Vec2 | Float32) : Vec2
- #+(other : Vec2) : Vec2
- #-(other : Vec2) : Vec2
- #- : Vec2
- #/(other : Vec2 | Float32) : Vec2
- #g : Float32
-
#r : Float32
Component swizzles
- #s : Float32
- #t : Float32
- #x : Float32
- #x=(x : Float32)
- #xx : Vec2
- #xy : Vec2
- #y : Float32
- #y=(y : Float32)
- #yx : Vec2
- #yy : Vec2