org.jbox2d.common
Class Vec3
java.lang.Object
org.jbox2d.common.Vec3
- All Implemented Interfaces:
- Serializable
public class Vec3
- extends Object
- implements Serializable
- Author:
- Daniel Murphy
- See Also:
- Serialized Form
Field Summary |
float |
x
|
float |
y
|
float |
z
|
Constructor Summary |
Vec3()
|
Vec3(float argX,
float argY,
float argZ)
|
Vec3(Vec3 argCopy)
|
x
public float x
y
public float y
z
public float z
Vec3
public Vec3()
Vec3
public Vec3(float argX,
float argY,
float argZ)
Vec3
public Vec3(Vec3 argCopy)
set
public Vec3 set(Vec3 argVec)
set
public Vec3 set(float argX,
float argY,
float argZ)
addLocal
public Vec3 addLocal(Vec3 argVec)
add
public Vec3 add(Vec3 argVec)
subLocal
public Vec3 subLocal(Vec3 argVec)
sub
public Vec3 sub(Vec3 argVec)
mulLocal
public Vec3 mulLocal(float argScalar)
mul
public Vec3 mul(float argScalar)
negate
public Vec3 negate()
negateLocal
public Vec3 negateLocal()
setZero
public void setZero()
clone
public Vec3 clone()
- Overrides:
clone
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
dot
public static final float dot(Vec3 a,
Vec3 b)
cross
public static final Vec3 cross(Vec3 a,
Vec3 b)
crossToOut
public static final void crossToOut(Vec3 a,
Vec3 b,
Vec3 out)
crossToOutUnsafe
public static final void crossToOutUnsafe(Vec3 a,
Vec3 b,
Vec3 out)
Copyright © 2013. All Rights Reserved.