Documentation ¶
Overview ¶
The types package provides an implementation of non-primitive Roblox types.
Index ¶
- Constants
- type Aliaser
- type Axes
- type Axis
- type BinaryString
- type Bool
- type BrickColor
- func NewBrickColor(number int) BrickColor
- func NewBrickColorFromColor(r, g, b float64) BrickColor
- func NewBrickColorFromColor3(color Color3) BrickColor
- func NewBrickColorFromIndex(index int) BrickColor
- func NewBrickColorFromName(name string) BrickColor
- func NewBrickColorFromPalette(index int) BrickColor
- func (b BrickColor) B() float64
- func (b BrickColor) Color() Color3
- func (b BrickColor) Copy() PropValue
- func (b BrickColor) G() float64
- func (b BrickColor) Index() int
- func (b BrickColor) Name() string
- func (b BrickColor) Number() int
- func (b BrickColor) R() float64
- func (b BrickColor) String() string
- func (BrickColor) Type() string
- type CFrame
- func NewCFrame() CFrame
- func NewCFrameFromAngles(rx, ry, rz float64) CFrame
- func NewCFrameFromAxisAngle(axis Vector3, rotation float64) CFrame
- func NewCFrameFromComponents(x, y, z, r00, r01, r02, r10, r11, r12, r20, r21, r22 float64) CFrame
- func NewCFrameFromLook(pos, lookAt Vector3) CFrame
- func NewCFrameFromLookAt(pos, lookAt, up Vector3) CFrame
- func NewCFrameFromMatrix(p, vx, vy, vz Vector3) CFrame
- func NewCFrameFromOrientation(rx, ry, rz float64) CFrame
- func NewCFrameFromPosition(x, y, z float64) CFrame
- func NewCFrameFromQuat(x, y, z, qx, qy, qz, qw float64) CFrame
- func NewCFrameFromVector3(v Vector3) CFrame
- func (c CFrame) AddV3(op Vector3) CFrame
- func (c CFrame) Angles() (rx, ry, rz float64)
- func (c CFrame) AxisAngle() (axis Vector3, rotation float64)
- func (c CFrame) Components() (x, y, z, r00, r01, r02, r10, r11, r12, r20, r21, r22 float64)
- func (c CFrame) Copy() PropValue
- func (c CFrame) Inverse() CFrame
- func (c CFrame) Lerp(goal CFrame, alpha float64) CFrame
- func (c CFrame) LookVector() Vector3
- func (a CFrame) Mul(b CFrame) CFrame
- func (c CFrame) MulV3(op Vector3) Vector3
- func (c CFrame) Orientation() (rx, ry, rz float64)
- func (c CFrame) PointToObjectSpace(v Vector3) Vector3
- func (c CFrame) PointToWorldSpace(v Vector3) Vector3
- func (c CFrame) Quaternion() (qx, qy, qz, qw float64)
- func (c CFrame) RightVector() Vector3
- func (c CFrame) String() string
- func (c CFrame) SubV3(op Vector3) CFrame
- func (c CFrame) ToObjectSpace(cf CFrame) CFrame
- func (c CFrame) ToWorldSpace(cf CFrame) CFrame
- func (CFrame) Type() string
- func (c CFrame) UpVector() Vector3
- func (c CFrame) VectorToObjectSpace(v Vector3) Vector3
- func (c CFrame) VectorToWorldSpace(v Vector3) Vector3
- func (c CFrame) X() float64
- func (c CFrame) XVector() Vector3
- func (c CFrame) Y() float64
- func (c CFrame) YVector() Vector3
- func (c CFrame) Z() float64
- func (c CFrame) ZVector() Vector3
- type Color3
- type ColorSequence
- type ColorSequenceKeypoint
- type Content
- type Double
- type Face
- type Faces
- type Float
- type Int
- type Int64
- type Intlike
- type NumberRange
- type NumberSequence
- type NumberSequenceKeypoint
- type Numberlike
- type PhysicalProperties
- type PropValue
- type ProtectedString
- type Ray
- type Rect
- type Region3
- type Region3int16
- type SharedString
- type String
- type Stringer
- type Stringlike
- type Token
- type UDim
- type UDim2
- type Value
- type Vector2
- func (v Vector2) Add(op Vector2) Vector2
- func (v Vector2) Copy() PropValue
- func (v Vector2) Cross(op Vector2) float64
- func (v Vector2) Div(op Vector2) Vector2
- func (v Vector2) DivN(op float64) Vector2
- func (v Vector2) Dot(op Vector2) float64
- func (v Vector2) FuzzyEq(op Vector2, epsilon float64) bool
- func (v Vector2) Lerp(goal Vector2, alpha float64) Vector2
- func (v Vector2) Magnitude() float64
- func (v Vector2) Mul(op Vector2) Vector2
- func (v Vector2) MulN(op float64) Vector2
- func (v Vector2) Neg() Vector2
- func (v Vector2) String() string
- func (v Vector2) Sub(op Vector2) Vector2
- func (Vector2) Type() string
- func (v Vector2) Unit() Vector2
- type Vector2int16
- func (v Vector2int16) Add(op Vector2int16) Vector2int16
- func (v Vector2int16) Copy() PropValue
- func (v Vector2int16) Div(op Vector2int16) Vector2int16
- func (v Vector2int16) DivN(op float64) Vector2int16
- func (v Vector2int16) Mul(op Vector2int16) Vector2int16
- func (v Vector2int16) MulN(op float64) Vector2int16
- func (v Vector2int16) Neg() Vector2int16
- func (v Vector2int16) String() string
- func (v Vector2int16) Sub(op Vector2int16) Vector2int16
- func (Vector2int16) Type() string
- type Vector3
- func (v Vector3) Add(op Vector3) Vector3
- func (v Vector3) Copy() PropValue
- func (v Vector3) Cross(op Vector3) Vector3
- func (v Vector3) Div(op Vector3) Vector3
- func (v Vector3) DivN(op float64) Vector3
- func (v Vector3) Dot(op Vector3) float64
- func (v Vector3) FuzzyEq(op Vector3, epsilon float64) bool
- func (v Vector3) Lerp(goal Vector3, alpha float64) Vector3
- func (v Vector3) Magnitude() float64
- func (v Vector3) Mul(op Vector3) Vector3
- func (v Vector3) MulN(op float64) Vector3
- func (v Vector3) Neg() Vector3
- func (v Vector3) String() string
- func (v Vector3) Sub(op Vector3) Vector3
- func (Vector3) Type() string
- func (v Vector3) Unit() Vector3
- type Vector3int16
- func (v Vector3int16) Add(op Vector3int16) Vector3int16
- func (v Vector3int16) Copy() PropValue
- func (v Vector3int16) Div(op Vector3int16) Vector3int16
- func (v Vector3int16) DivN(op float64) Vector3int16
- func (v Vector3int16) Mul(op Vector3int16) Vector3int16
- func (v Vector3int16) MulN(op float64) Vector3int16
- func (v Vector3int16) Neg() Vector3int16
- func (v Vector3int16) String() string
- func (v Vector3int16) Sub(op Vector3int16) Vector3int16
- func (Vector3int16) Type() string
Constants ¶
const BrickColorIndexSize = 208
const BrickColorPaletteSize = 128
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Axes ¶
type Axes struct {
X, Y, Z bool
}
Axes represents a set of orthogonal coordinate axes that are considered active.
func NewAxesFromAxis ¶
NewAxesFromAxis returns an Axes where the axes corresponding to the given Axis values are active.
func NewAxesFromFace ¶
NewAxesFromFace returns an Axes where the axes corresponding to the given Face values are active.
type Axis ¶
type Axis int8
Axis represents an orthographic axis in a 3-dimensional coordinate system.
const ( AxisX Axis AxisY AxisZ )
type BinaryString ¶
type BinaryString string
func (BinaryString) String ¶
func (s BinaryString) String() string
String returns a human-readable string representation of the value.
func (BinaryString) Stringlike ¶
func (s BinaryString) Stringlike() string
Stringlike returns the value as a string.
func (BinaryString) Type ¶
func (BinaryString) Type() string
Type returns a string that identifies the type.
type Bool ¶
type Bool bool
Bool represents one of two possible states.
type BrickColor ¶
type BrickColor uint32
BrickColor represents a color from a predefined collection.
const BrickColorDefault BrickColor = 194
func NewBrickColor ¶
func NewBrickColor(number int) BrickColor
NewBrickColor returns the BrickColor that corresponds to the given numeric value.
The the given number has no corresponding BrickColor, then BrickColorDefault is returned.
func NewBrickColorFromColor ¶
func NewBrickColorFromColor(r, g, b float64) BrickColor
NewBrickColorFromColor returns the BrickColor that is nearest to the given color components. Each component is in the interval [0, 1].
func NewBrickColorFromColor3 ¶
func NewBrickColorFromColor3(color Color3) BrickColor
NewBrickColorFromColor3 returns the BrickColor that is nearest to the given color.
func NewBrickColorFromIndex ¶
func NewBrickColorFromIndex(index int) BrickColor
NewBrickColorFromIndex returns the BrickColor that corresponds to the given index.
If the index is less than 0 or greater than or equal to BrickColorIndexSize, then BrickColorDefault is returned.
func NewBrickColorFromName ¶
func NewBrickColorFromName(name string) BrickColor
NewBrickColorFromName returns the BrickColor that corresponds the given name.
The the given name has no corresponding BrickColor, then BrickColorDefault is returned.
func NewBrickColorFromPalette ¶
func NewBrickColorFromPalette(index int) BrickColor
NewBrickColorFromPalette returns the BrickColor that corresponds to the given palette index.
If the index is less than 0 or greater than or equal to BrickColorPaletteSize, then BrickColorDefault is returned.
func (BrickColor) B ¶
func (b BrickColor) B() float64
B returns the blue component of the BrickColor's color.
func (BrickColor) Color ¶
func (b BrickColor) Color() Color3
Color returns the color of the BrickColor as a Color3.
func (BrickColor) G ¶
func (b BrickColor) G() float64
G returns the green component of the BrickColor's color.
func (BrickColor) Index ¶
func (b BrickColor) Index() int
Index returns the index of the BrickColor.
func (BrickColor) Number ¶
func (b BrickColor) Number() int
Number returns the numeric value that identifies the BrickColor.
func (BrickColor) R ¶
func (b BrickColor) R() float64
R returns the red component of the BrickColor's color.
func (BrickColor) String ¶
func (b BrickColor) String() string
String returns a human-readable string representation of the value.
func (BrickColor) Type ¶
func (BrickColor) Type() string
Type returns a string that identifies the type.
type CFrame ¶
CFrame is a matrix representing a combined position and orientation.
func NewCFrame ¶
func NewCFrame() CFrame
NewCFrame returns a CFrame with the default orientation located at the origin.
func NewCFrameFromAngles ¶
NewCFrameFromAngles returns a CFrame located at the origin, oriented according to the angles (rx, ry, rz), in radians. Rotations are ordered Z, Y, X.
func NewCFrameFromAxisAngle ¶
NewCFrameFromAxisAngle returns a CFrame located at the origin, rotated *r* radians around *axis*.
func NewCFrameFromComponents ¶
NewCFrameFromComponents returns a CFrame located at (x, y, z), oriented according to the rotation matrix
[r00, r01, r02] [r10, r11, r12] [r20, r21, r22]
func NewCFrameFromLook ¶
NewCFrameFromLook returns a CFrame located at *pos*, facing towards *lookAt*. The local upward direction is (0, 1, 0).
func NewCFrameFromLookAt ¶
NewCFrameFromLookAt returns a CFrame located at *pos*, facing towards *lookAt*, with the local upward direction determined by *up*.
func NewCFrameFromMatrix ¶
NewCFrameFromMatrix returns a CFrame located at *p*, rotated according to the rotation matrix
[vx.X, vy.X, vz.X] [vx.Y, vy.Y, vz.Y] [vx.Z, vy.Z, vz.Z]
If *vz* is the zero vector, then *vz* is calculated as the unit of the cross product of vx and vy.
func NewCFrameFromOrientation ¶
NewCFrameFromOrientation returns a CFrame located at the origin, oriented according to the angles (rx, ry, rz), in radians. Rotations are ordered Y, X, Z.
func NewCFrameFromPosition ¶
NewCFrameFromPosition returns a CFrame located at (x, y, z), with the default orientation.
func NewCFrameFromQuat ¶
NewCFrameFromQuat returns a CFrame located at (x, y, z), oriented according to the quaternion (qx, qy, qz, qw).
func NewCFrameFromVector3 ¶
NewCFrameFromVector3 returns a CFrame with the default orientation located at *v*.
func (CFrame) Angles ¶
Angles returns the approximate angles of the CFrame's orientation, in radians, if ordered Z, Y, X.
func (CFrame) AxisAngle ¶
AxisAngle returns the orientation of the CFrame as an angle, in radians, rotated around an axis.
func (CFrame) Components ¶
Components returns the components of the CFrame's position and rotation matrix.
func (CFrame) Lerp ¶
Lerp returns a CFrame linearly interpolated from the CFrame to *goal* according to *alpha*, which has an interval of [0, 1].
func (CFrame) LookVector ¶
LookVector returns the forward-direction, or the negation of the third column of the rotation matrix.
func (CFrame) Orientation ¶
Orientation returns the approximate angles of the CFrame's orientation, in radians, if ordered Y, X, Z.
func (CFrame) PointToObjectSpace ¶
PointToObjectSpace returns a Vector3 transformed from world to local space of the CFrame.
func (CFrame) PointToWorldSpace ¶
PointToWorldSpace returns a Vector3 transformed from local to world space of the CFrame.
func (CFrame) Quaternion ¶
Quaternion returns the rotation matrix as a quaternion.
func (CFrame) RightVector ¶
RightVector returns the right-direction, or first column of the rotation matrix.
func (CFrame) ToObjectSpace ¶
ToObjectSpace returns the CFrame transformed from world to local space of *cf*.
func (CFrame) ToWorldSpace ¶
ToWorldSpace returns the CFrame transformed from local to world space of *cf*.
func (CFrame) UpVector ¶
UpVector returns the up-direction, or second column of the rotation matrix.
func (CFrame) VectorToObjectSpace ¶
VectorToObjectSpace returns a Vector3 rotated from world to local space of the CFrame.
func (CFrame) VectorToWorldSpace ¶
VectorToWorldSpace returns a Vector3 rotated from local to world space of the CFrame.
type Color3 ¶
type Color3 struct {
R, G, B float32
}
Color3 represents a color in RGB space.
func NewColor3FromHSV ¶
NewColor3FromHSV returns a Color3 from the given hue, saturation, and value.
func NewColor3FromRGB ¶
NewColor3FromRGB returns a Color3 from the given red, green, and blue components, each having an interval of [0, 255].
func (Color3) Lerp ¶
Lerp returns a Color3 linearly interpolated between *c* and *goal*, according to *alpha*, which has an interval of [0, 1].
type ColorSequence ¶
type ColorSequence []ColorSequenceKeypoint
ColorSequence represents an interpolated sequence of colors.
func (ColorSequence) Copy ¶
func (c ColorSequence) Copy() PropValue
Copy returns a copy of the value.
func (ColorSequence) String ¶
func (c ColorSequence) String() string
String returns a human-readable string representation of the value.
func (ColorSequence) Type ¶
func (ColorSequence) Type() string
Type returns a string that identifies the type.
type ColorSequenceKeypoint ¶
ColorSequenceKeypoint is a keypoint in a ColorSequence.
func (ColorSequenceKeypoint) Copy ¶
func (c ColorSequenceKeypoint) Copy() PropValue
Copy returns a copy of the value.
func (ColorSequenceKeypoint) String ¶
func (c ColorSequenceKeypoint) String() string
String returns a human-readable string representation of the value.
func (ColorSequenceKeypoint) Type ¶
func (ColorSequenceKeypoint) Type() string
Type returns a string that identifies the type.
type Content ¶
type Content string
Content is a URI pointing to a resource.
func (Content) Stringlike ¶
Stringlike returns the value as a string.
type Double ¶
type Double float64
Double is a 64-bit floating-point number.
func (Double) Numberlike ¶
Numberlike returns the value as a float.
type Face ¶
type Face int8
Face represents a 3-dimensional egocentric direction, each value corresponding to one of the 3 orthographic axes.
const ( FaceRight Face // +X FaceTop // +Y FaceBack // +Z FaceLeft // -X FaceBottom // -X FaceFront // -Z )
type Faces ¶
type Faces struct {
Right, Top, Back, Left, Bottom, Front bool
}
Faces represents a set of directions, on three orthogonal axes, that are considered active.
func NewFacesFromAxis ¶
NewFacesFromAxis returns a Faces where the faces corresponding to the given Axis values are active.
func NewFacesFromFace ¶
NewFacesFromFace returns a Faces where the faces corresponding to the given Face values are active.
type Float ¶
type Float float32
Float is a 32-bit floating-point number.
func (Float) Numberlike ¶
Numberlike returns the value as a float.
type Int64 ¶
type Int64 int64
Int64 is a 64-bit signed integer.
func (Int64) Numberlike ¶
Numberlike returns the value as a float.
type NumberRange ¶
type NumberRange struct {
Min, Max float32
}
NumberRange represents a range between two numbers as a minimum and maximum.
func (NumberRange) String ¶
func (n NumberRange) String() string
String returns a human-readable string representation of the value.
func (NumberRange) Type ¶
func (NumberRange) Type() string
Type returns a string that identifies the type.
type NumberSequence ¶
type NumberSequence []NumberSequenceKeypoint
NumberSequence represents an interpolated sequence of numbers.
func (NumberSequence) Copy ¶
func (n NumberSequence) Copy() PropValue
Copy returns a copy of the value.
func (NumberSequence) String ¶
func (n NumberSequence) String() string
String returns a human-readable string representation of the value.
func (NumberSequence) Type ¶
func (NumberSequence) Type() string
Type returns a string that identifies the type.
type NumberSequenceKeypoint ¶
NumberSequenceKeypoint is a keypoint in a NumberSequence.
func (NumberSequenceKeypoint) Copy ¶
func (n NumberSequenceKeypoint) Copy() PropValue
Copy returns a copy of the value.
func (NumberSequenceKeypoint) String ¶
func (n NumberSequenceKeypoint) String() string
String returns a human-readable string representation of the value.
func (NumberSequenceKeypoint) Type ¶
func (NumberSequenceKeypoint) Type() string
Type returns a string identifying the type.
type Numberlike ¶
Numberlike is any value that can be converted to a floating-point number.
type PhysicalProperties ¶
type PhysicalProperties struct { CustomPhysics bool Density float32 Friction float32 Elasticity float32 FrictionWeight float32 ElasticityWeight float32 }
PhysicalProperties represent the physical properties of an object.
func (PhysicalProperties) Copy ¶
func (p PhysicalProperties) Copy() PropValue
Copy returns a copy of the value.
func (PhysicalProperties) String ¶
func (p PhysicalProperties) String() string
String returns a human-readable string representation of the value.
func (PhysicalProperties) Type ¶
func (PhysicalProperties) Type() string
Type returns a string that identifies the type.
type ProtectedString ¶
type ProtectedString string
ProtectedString indicates the source of a script.
func (ProtectedString) Copy ¶
func (s ProtectedString) Copy() PropValue
Copy returns a copy of the value.
func (ProtectedString) String ¶
func (s ProtectedString) String() string
String returns a human-readable string representation of the value.
func (ProtectedString) Stringlike ¶
func (s ProtectedString) Stringlike() string
Stringlike returns the value as a string.
func (ProtectedString) Type ¶
func (ProtectedString) Type() string
Type returns a string that identifies the type.
type Ray ¶
Ray is a line extending infinitely in one direction.
func (Ray) ClosestPoint ¶
ClosestPoint returns the position on the ray that is nearest to *point*.
func (Ray) Distance ¶
Distance returns the distance between *point* and the point on the ray nearest to *point*.
type Rect ¶
type Rect struct {
Min, Max Vector2
}
Rect represents an axis-aligned two-dimensional rectangle with a lower and upper boundary.
type Region3 ¶
type Region3 struct {
Min, Max Vector3
}
Region3 represents an axis-aligned three-dimensional rectangular cuboid with a lower and upper boundary.
func (Region3) CFrame ¶
CFrame returns a CFrame with the default orientation, located at the center of the region.
func (Region3) ExpandToGrid ¶
ExpandToGrid returns the region expanded to align to the given resolution. If *res* is 0, the region is returned unchanged.
type Region3int16 ¶
type Region3int16 struct {
Min, Max Vector3int16
}
Region3int16 represents an axis-aligned three-dimensional rectangular cuboid with a lower and upper boundary, with 16-bit integer precision.
func (Region3int16) String ¶
func (r Region3int16) String() string
String returns a human-readable string representation of the value.
func (Region3int16) Type ¶
func (Region3int16) Type() string
Type returns a string that identifies the type.
type SharedString ¶
type SharedString string
SharedString represents data that is shared by multiple objects.
func (SharedString) String ¶
func (s SharedString) String() string
String returns a human-readable string representation of the value.
func (SharedString) Stringlike ¶
func (s SharedString) Stringlike() string
Stringlike returns the value as a string.
func (SharedString) Type ¶
func (SharedString) Type() string
Type returns a string that identifies the type.
type String ¶
type String string
String is a sequence of characters.
func (String) Stringlike ¶
Stringlike returns the value as a string.
type Stringlike ¶
Stringlike is any Value that can be converted to a string. Note that this is distinct from a Stringer, which returns the value in a human-readable format.
type Token ¶
type Token uint32
Token represents the value of an enumerated type.
func (Token) Numberlike ¶
Numberlike returns the value as a float.
type UDim ¶
UDim represents one dimension with a dynamic and constant component.
type UDim2 ¶
type UDim2 struct {
X, Y UDim
}
UDim2 is a UDim on two dimensions.
func (UDim2) Lerp ¶
Lerp returns a UDim2 linearly interpolated from the UDim2 to *goal* according to *alpha*, which has an interval of [0, 1].
type Vector2 ¶
type Vector2 struct {
X, Y float32
}
Vector2 is a two-dimensional Euclidean vector.
func NewVector2 ¶
NewVector2 returns a vector initialized with the given components.
func (Vector2) Cross ¶
Cross returns the cross product of two vectors extended into three dimensions with z components of 0.
func (Vector2) Lerp ¶
Lerp returns a Vector2 linearly interpolated from the Vector2 to *goal* according to *alpha*, which has an interval of [0, 1].
type Vector2int16 ¶
type Vector2int16 struct {
X, Y int16
}
Vector2int16 is a two-dimensional Euclidean vector with 16-bit integer precision.
func NewVector2int16 ¶
func NewVector2int16(x, y int) Vector2int16
NewVector2int16 returns a vector initialized with the given components.
func (Vector2int16) Add ¶
func (v Vector2int16) Add(op Vector2int16) Vector2int16
Add returns the sum of two vectors.
func (Vector2int16) Div ¶
func (v Vector2int16) Div(op Vector2int16) Vector2int16
Div returns the quotient of two vectors.
func (Vector2int16) DivN ¶
func (v Vector2int16) DivN(op float64) Vector2int16
DivN returns the vector with each component divided by a number.
func (Vector2int16) Mul ¶
func (v Vector2int16) Mul(op Vector2int16) Vector2int16
Mul returns the product of two vectors.
func (Vector2int16) MulN ¶
func (v Vector2int16) MulN(op float64) Vector2int16
MulN returns the vector with each component multiplied by a number.
func (Vector2int16) Neg ¶
func (v Vector2int16) Neg() Vector2int16
Neg returns the negation of the vector.
func (Vector2int16) String ¶
func (v Vector2int16) String() string
String returns a human-readable string representation of the value.
func (Vector2int16) Sub ¶
func (v Vector2int16) Sub(op Vector2int16) Vector2int16
Sub returns the difference of two vectors.
func (Vector2int16) Type ¶
func (Vector2int16) Type() string
Type returns a string that identifies the type.
type Vector3 ¶
type Vector3 struct {
X, Y, Z float32
}
Vector3 is a three-dimensional Euclidean vector.
func NewVector3 ¶
NewVector3 returns a vector initialized with the given components.
func NewVector3FromAxis ¶
NewVector3FromAxis returns the vector that corresponds to the given Axis.
func NewVector3FromFace ¶
NewVector3FromFace returns the vector that corresponds to the given Face.
func (Vector3) Lerp ¶
Lerp returns a Vector3 linearly interpolated from the Vector3 to *goal* according to *alpha*, which has an interval of [0, 1].
type Vector3int16 ¶
type Vector3int16 struct {
X, Y, Z int16
}
Vector3int16 is a three-dimensional Euclidean vector with 16-bit integer precision.
func NewVector3int16 ¶
func NewVector3int16(x, y, z int) Vector3int16
NewVector3int16 returns a vector initialized with the given components.
func (Vector3int16) Add ¶
func (v Vector3int16) Add(op Vector3int16) Vector3int16
Add returns the sum of two vectors.
func (Vector3int16) Div ¶
func (v Vector3int16) Div(op Vector3int16) Vector3int16
Div returns the quotient of two vectors.
func (Vector3int16) DivN ¶
func (v Vector3int16) DivN(op float64) Vector3int16
DivN returns the vector with each component divided by a number.
func (Vector3int16) Mul ¶
func (v Vector3int16) Mul(op Vector3int16) Vector3int16
Mul returns the product of two vectors.
func (Vector3int16) MulN ¶
func (v Vector3int16) MulN(op float64) Vector3int16
MulN returns the vector with each component multiplied by a number.
func (Vector3int16) Neg ¶
func (v Vector3int16) Neg() Vector3int16
Neg returns the negation of the vector.
func (Vector3int16) String ¶
func (v Vector3int16) String() string
String returns a human-readable string representation of the value.
func (Vector3int16) Sub ¶
func (v Vector3int16) Sub(op Vector3int16) Vector3int16
Sub returns the difference of two vectors.
func (Vector3int16) Type ¶
func (Vector3int16) Type() string
Type returns a string that identifies the type.
Source Files ¶
- Axes.go
- Axis.go
- BinaryString.go
- Bool.go
- BrickColor.go
- BrickColor_gen.go
- CFrame.go
- Color3.go
- ColorSequence.go
- ColorSequenceKeypoint.go
- Content.go
- Double.go
- Face.go
- Faces.go
- Float.go
- Int.go
- Int64.go
- NumberRange.go
- NumberSequence.go
- NumberSequenceKeypoint.go
- PhysicalProperties.go
- ProtectedString.go
- Ray.go
- Rect.go
- Region3.go
- Region3int16.go
- SharedString.go
- String.go
- Token.go
- UDim.go
- UDim2.go
- Vector2.go
- Vector2int16.go
- Vector3.go
- Vector3int16.go
- doc.go
- value.go